file(GLOB_RECURSE _CURRENT_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc")
set_property(SOURCE ${_CURRENT_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_MD)
add_subdirectory(samplers)

set(DATASET_ENGINE_IR_DATASETOPS_SOURCE_SRC_FILES
        ag_news_node.cc
        album_node.cc
        amazon_review_node.cc
        caltech256_node.cc
        celeba_node.cc
        cifar100_node.cc
        cifar10_node.cc
        cityscapes_node.cc
        clue_node.cc
        cmu_arctic_node.cc
        coco_node.cc
        conll2000_node.cc
        csv_node.cc
        dbpedia_node.cc
        div2k_node.cc
        emnist_node.cc
        en_wik9_node.cc
        fake_image_node.cc
        fashion_mnist_node.cc
        flickr_node.cc
        food101_node.cc
        gtzan_node.cc
        image_folder_node.cc
        imdb_node.cc
        iwslt2016_node.cc
        iwslt2017_node.cc
        kitti_node.cc
        kmnist_node.cc
        lfw_node.cc
        libri_tts_node.cc
        lj_speech_node.cc
        lsun_node.cc
        manifest_node.cc
        minddata_node.cc
        mnist_node.cc
        multi30k_node.cc
        omniglot_node.cc
        penn_treebank_node.cc
        photo_tour_node.cc
        places365_node.cc
        qmnist_node.cc
        random_node.cc
        rendered_sst2_node.cc
        sbu_node.cc
        semeion_node.cc
        sogou_news_node.cc
        speech_commands_node.cc
        squad_node.cc
        sst2_node.cc
        stl10_node.cc
        sun397_node.cc
        tedlium_node.cc
        text_file_node.cc
        tf_record_node.cc
        udpos_node.cc
        usps_node.cc
        voc_node.cc
        wider_face_node.cc
        wiki_text_node.cc
        yahoo_answers_node.cc
        yelp_review_node.cc
        yes_no_node.cc
        )

if(ENABLE_PYTHON)
    set(DATASET_ENGINE_IR_DATASETOPS_SOURCE_SRC_FILES
            ${DATASET_ENGINE_IR_DATASETOPS_SOURCE_SRC_FILES}
            generator_node.cc
            )
endif()

add_library(engine-ir-datasetops-source OBJECT ${DATASET_ENGINE_IR_DATASETOPS_SOURCE_SRC_FILES})
